local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1, L8_1, L9_1, L10_1, L11_1, L12_1, L13_1
L0_1 = {}
L0_1.group_id = 133001578
L1_1 = {}
L1_1.RegionID = 578033
L2_1 = {}
L3_1 = {}
L3_1.config_id = 578001
L3_1.monster_id = 24010101
L4_1 = {}
L4_1.x = 1565.85
L4_1.y = 252.087
L4_1.z = -1651.165
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 0.0
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 1
L3_1.drop_id = 1000100
L3_1.disableWander = true
L3_1.pose_id = 100
L3_1.area_id = 2
L2_1[578001] = L3_1
L3_1 = {}
L3_1.config_id = 578002
L3_1.monster_id = 24010101
L4_1 = {}
L4_1.x = 1565.85
L4_1.y = 252.087
L4_1.z = -1651.165
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 0.0
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 1
L3_1.drop_id = 1000100
L3_1.disableWander = true
L4_1 = {}
L5_1 = 1007
L4_1[1] = L5_1
L3_1.affix = L4_1
L3_1.pose_id = 100
L3_1.area_id = 2
L2_1[578002] = L3_1
L3_1 = {}
L3_1.config_id = 578003
L3_1.monster_id = 24010101
L4_1 = {}
L4_1.x = 1554.88
L4_1.y = 252.084
L4_1.z = -1641.654
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 75.0
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 1
L3_1.drop_id = 1000100
L3_1.disableWander = true
L3_1.pose_id = 100
L3_1.area_id = 2
L2_1[578003] = L3_1
L3_1 = {}
L3_1.config_id = 578004
L3_1.monster_id = 24010101
L4_1 = {}
L4_1.x = 1554.88
L4_1.y = 252.084
L4_1.z = -1641.654
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 75.0
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 1
L3_1.drop_id = 1000100
L3_1.disableWander = true
L4_1 = {}
L5_1 = 1007
L4_1[1] = L5_1
L3_1.affix = L4_1
L3_1.pose_id = 100
L3_1.area_id = 2
L2_1[578004] = L3_1
L3_1 = {}
L3_1.config_id = 578005
L3_1.monster_id = 24010101
L4_1 = {}
L4_1.x = 1570.799
L4_1.y = 252.087
L4_1.z = -1633.724
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 225.0
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 1
L3_1.drop_id = 1000100
L3_1.disableWander = true
L3_1.pose_id = 100
L3_1.area_id = 2
L2_1[578005] = L3_1
L3_1 = {}
L3_1.config_id = 578006
L3_1.monster_id = 24010101
L4_1 = {}
L4_1.x = 1561.439
L4_1.y = 252.092
L4_1.z = -1632.586
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 165.0
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 1
L3_1.drop_id = 1000100
L3_1.disableWander = true
L3_1.pose_id = 100
L3_1.area_id = 2
L2_1[578006] = L3_1
L3_1 = {}
L3_1.config_id = 578007
L3_1.monster_id = 24010101
L4_1 = {}
L4_1.x = 1573.513
L4_1.y = 252.093
L4_1.z = -1644.386
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 290.0
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 1
L3_1.drop_id = 1000100
L3_1.disableWander = true
L3_1.pose_id = 100
L3_1.area_id = 2
L2_1[578007] = L3_1
L3_1 = {}
L3_1.config_id = 578008
L3_1.monster_id = 24010101
L4_1 = {}
L4_1.x = 1570.799
L4_1.y = 252.087
L4_1.z = -1633.724
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 225.0
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 1
L3_1.drop_id = 1000100
L3_1.disableWander = true
L4_1 = {}
L5_1 = 1007
L4_1[1] = L5_1
L3_1.affix = L4_1
L3_1.pose_id = 100
L3_1.area_id = 2
L2_1[578008] = L3_1
L3_1 = {}
L3_1.config_id = 578009
L3_1.monster_id = 24010101
L4_1 = {}
L4_1.x = 1561.439
L4_1.y = 252.092
L4_1.z = -1632.586
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 165.0
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 1
L3_1.drop_id = 1000100
L3_1.disableWander = true
L4_1 = {}
L5_1 = 1007
L4_1[1] = L5_1
L3_1.affix = L4_1
L3_1.pose_id = 100
L3_1.area_id = 2
L2_1[578009] = L3_1
L3_1 = {}
L3_1.config_id = 578010
L3_1.monster_id = 24010101
L4_1 = {}
L4_1.x = 1573.513
L4_1.y = 252.093
L4_1.z = -1644.386
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 290.0
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 1
L3_1.drop_id = 1000100
L3_1.disableWander = true
L4_1 = {}
L5_1 = 1007
L4_1[1] = L5_1
L3_1.affix = L4_1
L3_1.pose_id = 100
L3_1.area_id = 2
L2_1[578010] = L3_1
monsters = L2_1
L2_1 = {}
npcs = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 578012
L3_1.gadget_id = 70710001
L4_1 = {}
L4_1.x = 1564.2
L4_1.y = 252.08
L4_1.z = -1640.4
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 0.0
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 1
L3_1.area_id = 2
L2_1[578012] = L3_1
L3_1 = {}
L3_1.config_id = 578032
L3_1.gadget_id = 70950041
L4_1 = {}
L4_1.x = 1563.954
L4_1.y = 248.197
L4_1.z = -1642.787
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 0.0
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 15
L3_1.area_id = 2
L2_1[578032] = L3_1
gadgets = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 578011
L4_1 = RegionShape
L4_1 = L4_1.SPHERE
L3_1.shape = L4_1
L3_1.radius = 21
L4_1 = {}
L4_1.x = 1564.239
L4_1.y = 255.733
L4_1.z = -1642.011
L3_1.pos = L4_1
L3_1.area_id = 2
L2_1[578011] = L3_1
L3_1 = {}
L3_1.config_id = 578033
L4_1 = RegionShape
L4_1 = L4_1.SPHERE
L3_1.shape = L4_1
L3_1.radius = 27
L4_1 = {}
L4_1.x = 1564.328
L4_1.y = 252.197
L4_1.z = -1641.672
L3_1.pos = L4_1
L3_1.area_id = 2
L2_1[578033] = L3_1
regions = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 1578011
L3_1.name = "LEAVE_REGION_578011"
L4_1 = EventType
L4_1 = L4_1.EVENT_LEAVE_REGION
L3_1.event = L4_1
L3_1.source = ""
L3_1.condition = ""
L3_1.action = ""
L3_1.tag = "578"
L4_1 = {}
L4_1.config_id = 1578023
L4_1.name = "GADGET_CREATE_578023"
L5_1 = EventType
L5_1 = L5_1.EVENT_GADGET_CREATE
L4_1.event = L5_1
L4_1.source = ""
L4_1.condition = "condition_EVENT_GADGET_CREATE_578023"
L4_1.action = "action_EVENT_GADGET_CREATE_578023"
L4_1.tlog_tag = "2"
L5_1 = {}
L5_1.config_id = 1578024
L5_1.name = "CHALLENGE_SUCCESS_578024"
L6_1 = EventType
L6_1 = L6_1.EVENT_CHALLENGE_SUCCESS
L5_1.event = L6_1
L5_1.source = "503"
L5_1.condition = ""
L5_1.action = "action_EVENT_CHALLENGE_SUCCESS_578024"
L6_1 = {}
L6_1.config_id = 1578025
L6_1.name = "GADGET_CREATE_578025"
L7_1 = EventType
L7_1 = L7_1.EVENT_GADGET_CREATE
L6_1.event = L7_1
L6_1.source = ""
L6_1.condition = "condition_EVENT_GADGET_CREATE_578025"
L6_1.action = "action_EVENT_GADGET_CREATE_578025"
L6_1.tlog_tag = "1"
L7_1 = {}
L7_1.config_id = 1578026
L7_1.name = "CHALLENGE_FAIL_578026"
L8_1 = EventType
L8_1 = L8_1.EVENT_CHALLENGE_FAIL
L7_1.event = L8_1
L7_1.source = "503"
L7_1.condition = ""
L7_1.action = "action_EVENT_CHALLENGE_FAIL_578026"
L8_1 = {}
L8_1.config_id = 1578027
L8_1.name = "CHALLENGE_SUCCESS_578027"
L9_1 = EventType
L9_1 = L9_1.EVENT_CHALLENGE_SUCCESS
L8_1.event = L9_1
L8_1.source = "501"
L8_1.condition = ""
L8_1.action = "action_EVENT_CHALLENGE_SUCCESS_578027"
L9_1 = {}
L9_1.config_id = 1578028
L9_1.name = "CHALLENGE_FAIL_578028"
L10_1 = EventType
L10_1 = L10_1.EVENT_CHALLENGE_FAIL
L9_1.event = L10_1
L9_1.source = "501"
L9_1.condition = ""
L9_1.action = "action_EVENT_CHALLENGE_FAIL_578028"
L10_1 = {}
L10_1.config_id = 1578029
L10_1.name = "GADGET_CREATE_578029"
L11_1 = EventType
L11_1 = L11_1.EVENT_GADGET_CREATE
L10_1.event = L11_1
L10_1.source = ""
L10_1.condition = "condition_EVENT_GADGET_CREATE_578029"
L10_1.action = "action_EVENT_GADGET_CREATE_578029"
L10_1.tlog_tag = "3"
L11_1 = {}
L11_1.config_id = 1578030
L11_1.name = "CHALLENGE_SUCCESS_578030"
L12_1 = EventType
L12_1 = L12_1.EVENT_CHALLENGE_SUCCESS
L11_1.event = L12_1
L11_1.source = "505"
L11_1.condition = ""
L11_1.action = "action_EVENT_CHALLENGE_SUCCESS_578030"
L12_1 = {}
L12_1.config_id = 1578031
L12_1.name = "CHALLENGE_FAIL_578031"
L13_1 = EventType
L13_1 = L13_1.EVENT_CHALLENGE_FAIL
L12_1.event = L13_1
L12_1.source = "505"
L12_1.condition = ""
L12_1.action = "action_EVENT_CHALLENGE_FAIL_578031"
L2_1[1] = L3_1
L2_1[2] = L4_1
L2_1[3] = L5_1
L2_1[4] = L6_1
L2_1[5] = L7_1
L2_1[6] = L8_1
L2_1[7] = L9_1
L2_1[8] = L10_1
L2_1[9] = L11_1
L2_1[10] = L12_1
triggers = L2_1
L2_1 = {}
variables = L2_1
L2_1 = {}
L2_1.suite = 1
L2_1.end_suite = 0
L2_1.rand_suite = false
init_config = L2_1
L2_1 = {}
L3_1 = {}
L4_1 = {}
L3_1.monsters = L4_1
L4_1 = {}
L3_1.gadgets = L4_1
L4_1 = {}
L5_1 = 578033
L4_1[1] = L5_1
L3_1.regions = L4_1
L4_1 = {}
L3_1.triggers = L4_1
L3_1.rand_weight = 100
L4_1 = {}
L5_1 = {}
L4_1.monsters = L5_1
L5_1 = {}
L6_1 = 578012
L7_1 = 578032
L5_1[1] = L6_1
L5_1[2] = L7_1
L4_1.gadgets = L5_1
L5_1 = {}
L6_1 = 578011
L5_1[1] = L6_1
L4_1.regions = L5_1
L5_1 = {}
L6_1 = "LEAVE_REGION_578011"
L7_1 = "GADGET_CREATE_578025"
L8_1 = "CHALLENGE_SUCCESS_578027"
L9_1 = "CHALLENGE_FAIL_578028"
L5_1[1] = L6_1
L5_1[2] = L7_1
L5_1[3] = L8_1
L5_1[4] = L9_1
L4_1.triggers = L5_1
L4_1.rand_weight = 100
L5_1 = {}
L6_1 = {}
L5_1.monsters = L6_1
L6_1 = {}
L7_1 = 578012
L8_1 = 578032
L6_1[1] = L7_1
L6_1[2] = L8_1
L5_1.gadgets = L6_1
L6_1 = {}
L7_1 = 578011
L6_1[1] = L7_1
L5_1.regions = L6_1
L6_1 = {}
L7_1 = "LEAVE_REGION_578011"
L8_1 = "GADGET_CREATE_578023"
L9_1 = "CHALLENGE_SUCCESS_578024"
L10_1 = "CHALLENGE_FAIL_578026"
L6_1[1] = L7_1
L6_1[2] = L8_1
L6_1[3] = L9_1
L6_1[4] = L10_1
L5_1.triggers = L6_1
L5_1.rand_weight = 100
L6_1 = {}
L7_1 = {}
L6_1.monsters = L7_1
L7_1 = {}
L8_1 = 578012
L9_1 = 578032
L7_1[1] = L8_1
L7_1[2] = L9_1
L6_1.gadgets = L7_1
L7_1 = {}
L8_1 = 578011
L7_1[1] = L8_1
L6_1.regions = L7_1
L7_1 = {}
L8_1 = "LEAVE_REGION_578011"
L9_1 = "GADGET_CREATE_578029"
L10_1 = "CHALLENGE_SUCCESS_578030"
L11_1 = "CHALLENGE_FAIL_578031"
L7_1[1] = L8_1
L7_1[2] = L9_1
L7_1[3] = L10_1
L7_1[4] = L11_1
L6_1.triggers = L7_1
L6_1.rand_weight = 100
L2_1[1] = L3_1
L2_1[2] = L4_1
L2_1[3] = L5_1
L2_1[4] = L6_1
suites = L2_1
function L2_1(A0_2, A1_2)
  local L2_2
  L2_2 = A1_2.param1
  if 578032 ~= L2_2 then
    L2_2 = false
    return L2_2
  end
  L2_2 = true
  return L2_2
end
condition_EVENT_GADGET_CREATE_578023 = L2_1
function L2_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2
  L2_2 = ScriptLib
  L2_2 = L2_2.CreateFatherChallenge
  L3_2 = A0_2
  L4_2 = 503
  L5_2 = 110163
  L6_2 = 240
  L7_2 = {}
  L7_2.success = 1
  L7_2.fail = 1
  L7_2.fail_on_wipe = true
  L2_2(L3_2, L4_2, L5_2, L6_2, L7_2)
  L2_2 = ScriptLib
  L2_2 = L2_2.AttachChildChallenge
  L3_2 = A0_2
  L4_2 = 503
  L5_2 = 110264
  L6_2 = 110164
  L7_2 = {}
  L8_2 = 240
  L9_2 = 133001578
  L10_2 = 3
  L11_2 = 0
  L7_2[1] = L8_2
  L7_2[2] = L9_2
  L7_2[3] = L10_2
  L7_2[4] = L11_2
  L8_2 = {}
  L9_2 = {}
  L9_2.success = 1
  L9_2.fail = 1
  L2_2(L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2)
  L2_2 = ScriptLib
  L2_2 = L2_2.AttachChildChallenge
  L3_2 = A0_2
  L4_2 = 503
  L5_2 = 110266
  L6_2 = 110166
  L7_2 = {}
  L8_2 = 240
  L9_2 = 1
  L10_2 = 0
  L11_2 = 0
  L7_2[1] = L8_2
  L7_2[2] = L9_2
  L7_2[3] = L10_2
  L7_2[4] = L11_2
  L8_2 = {}
  L9_2 = {}
  L9_2.success = 0
  L9_2.fail = 1
  L2_2(L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2)
  L2_2 = ScriptLib
  L2_2 = L2_2.AttachChildChallenge
  L3_2 = A0_2
  L4_2 = 503
  L5_2 = 110169
  L6_2 = 110169
  L7_2 = {}
  L8_2 = 240
  L9_2 = 5
  L10_2 = 578
  L11_2 = 1
  L12_2 = 0
  L7_2[1] = L8_2
  L7_2[2] = L9_2
  L7_2[3] = L10_2
  L7_2[4] = L11_2
  L7_2[5] = L12_2
  L8_2 = {}
  L9_2 = {}
  L9_2.success = 0
  L9_2.fail = 1
  L2_2(L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2)
  L2_2 = ScriptLib
  L2_2 = L2_2.StartFatherChallenge
  L3_2 = A0_2
  L4_2 = 503
  L2_2(L3_2, L4_2)
  L2_2 = ScriptLib
  L2_2 = L2_2.AutoMonsterTide
  L3_2 = A0_2
  L4_2 = 504
  L5_2 = 133001578
  L6_2 = {}
  L7_2 = 578001
  L8_2 = 578003
  L9_2 = 578006
  L10_2 = 578007
  L6_2[1] = L7_2
  L6_2[2] = L8_2
  L6_2[3] = L9_2
  L6_2[4] = L10_2
  L7_2 = 4
  L8_2 = 2
  L9_2 = 2
  L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2)
  if 0 ~= L2_2 then
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_GADGET_CREATE_578023 = L2_1
function L2_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2
  L2_2 = ScriptLib
  L2_2 = L2_2.RefreshGroup
  L3_2 = A0_2
  L4_2 = {}
  L4_2.group_id = 133001578
  L4_2.suite = 1
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : refresh_group_to_suite"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_CHALLENGE_SUCCESS_578024 = L2_1
function L2_1(A0_2, A1_2)
  local L2_2
  L2_2 = A1_2.param1
  if 578032 ~= L2_2 then
    L2_2 = false
    return L2_2
  end
  L2_2 = true
  return L2_2
end
condition_EVENT_GADGET_CREATE_578025 = L2_1
function L2_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2
  L2_2 = ScriptLib
  L2_2 = L2_2.CreateFatherChallenge
  L3_2 = A0_2
  L4_2 = 501
  L5_2 = 110163
  L6_2 = 300
  L7_2 = {}
  L7_2.success = 1
  L7_2.fail = 1
  L7_2.fail_on_wipe = true
  L2_2(L3_2, L4_2, L5_2, L6_2, L7_2)
  L2_2 = ScriptLib
  L2_2 = L2_2.AttachChildChallenge
  L3_2 = A0_2
  L4_2 = 501
  L5_2 = 110164
  L6_2 = 110164
  L7_2 = {}
  L8_2 = 300
  L9_2 = 133001578
  L10_2 = 2
  L11_2 = 0
  L7_2[1] = L8_2
  L7_2[2] = L9_2
  L7_2[3] = L10_2
  L7_2[4] = L11_2
  L8_2 = {}
  L9_2 = {}
  L9_2.success = 1
  L9_2.fail = 1
  L2_2(L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2)
  L2_2 = ScriptLib
  L2_2 = L2_2.AttachChildChallenge
  L3_2 = A0_2
  L4_2 = 501
  L5_2 = 110166
  L6_2 = 110166
  L7_2 = {}
  L8_2 = 300
  L9_2 = 2
  L10_2 = 0
  L11_2 = 0
  L7_2[1] = L8_2
  L7_2[2] = L9_2
  L7_2[3] = L10_2
  L7_2[4] = L11_2
  L8_2 = {}
  L9_2 = {}
  L9_2.success = 0
  L9_2.fail = 1
  L2_2(L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2)
  L2_2 = ScriptLib
  L2_2 = L2_2.AttachChildChallenge
  L3_2 = A0_2
  L4_2 = 501
  L5_2 = 110169
  L6_2 = 110169
  L7_2 = {}
  L8_2 = 300
  L9_2 = 5
  L10_2 = 578
  L11_2 = 1
  L12_2 = 0
  L7_2[1] = L8_2
  L7_2[2] = L9_2
  L7_2[3] = L10_2
  L7_2[4] = L11_2
  L7_2[5] = L12_2
  L8_2 = {}
  L9_2 = {}
  L9_2.success = 0
  L9_2.fail = 1
  L2_2(L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2)
  L2_2 = ScriptLib
  L2_2 = L2_2.StartFatherChallenge
  L3_2 = A0_2
  L4_2 = 501
  L2_2(L3_2, L4_2)
  L2_2 = ScriptLib
  L2_2 = L2_2.AutoMonsterTide
  L3_2 = A0_2
  L4_2 = 502
  L5_2 = 133001578
  L6_2 = {}
  L7_2 = 578001
  L8_2 = 578003
  L9_2 = 578006
  L10_2 = 578007
  L6_2[1] = L7_2
  L6_2[2] = L8_2
  L6_2[3] = L9_2
  L6_2[4] = L10_2
  L7_2 = 2
  L8_2 = 1
  L9_2 = 1
  L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2)
  if 0 ~= L2_2 then
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_GADGET_CREATE_578025 = L2_1
function L2_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2
  L2_2 = ScriptLib
  L2_2 = L2_2.RefreshGroup
  L3_2 = A0_2
  L4_2 = {}
  L4_2.group_id = 133001578
  L4_2.suite = 1
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : refresh_group_to_suite"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_CHALLENGE_FAIL_578026 = L2_1
function L2_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2
  L2_2 = ScriptLib
  L2_2 = L2_2.RefreshGroup
  L3_2 = A0_2
  L4_2 = {}
  L4_2.group_id = 133001578
  L4_2.suite = 1
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : refresh_group_to_suite"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_CHALLENGE_SUCCESS_578027 = L2_1
function L2_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2
  L2_2 = ScriptLib
  L2_2 = L2_2.RefreshGroup
  L3_2 = A0_2
  L4_2 = {}
  L4_2.group_id = 133001578
  L4_2.suite = 1
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : refresh_group_to_suite"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_CHALLENGE_FAIL_578028 = L2_1
function L2_1(A0_2, A1_2)
  local L2_2
  L2_2 = A1_2.param1
  if 578032 ~= L2_2 then
    L2_2 = false
    return L2_2
  end
  L2_2 = true
  return L2_2
end
condition_EVENT_GADGET_CREATE_578029 = L2_1
function L2_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2
  L2_2 = ScriptLib
  L2_2 = L2_2.CreateFatherChallenge
  L3_2 = A0_2
  L4_2 = 505
  L5_2 = 110163
  L6_2 = 135
  L7_2 = {}
  L7_2.success = 1
  L7_2.fail = 1
  L7_2.fail_on_wipe = true
  L2_2(L3_2, L4_2, L5_2, L6_2, L7_2)
  L2_2 = ScriptLib
  L2_2 = L2_2.AttachChildChallenge
  L3_2 = A0_2
  L4_2 = 505
  L5_2 = 110364
  L6_2 = 110164
  L7_2 = {}
  L8_2 = 135
  L9_2 = 133001578
  L10_2 = 5
  L11_2 = 0
  L7_2[1] = L8_2
  L7_2[2] = L9_2
  L7_2[3] = L10_2
  L7_2[4] = L11_2
  L8_2 = {}
  L9_2 = {}
  L9_2.success = 1
  L9_2.fail = 1
  L2_2(L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2)
  L2_2 = ScriptLib
  L2_2 = L2_2.AttachChildChallenge
  L3_2 = A0_2
  L4_2 = 505
  L5_2 = 110366
  L6_2 = 110179
  L7_2 = {}
  L8_2 = 135
  L9_2 = 0
  L10_2 = 0
  L11_2 = 0
  L7_2[1] = L8_2
  L7_2[2] = L9_2
  L7_2[3] = L10_2
  L7_2[4] = L11_2
  L8_2 = {}
  L9_2 = {}
  L9_2.success = 0
  L9_2.fail = 1
  L2_2(L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2)
  L2_2 = ScriptLib
  L2_2 = L2_2.AttachChildChallenge
  L3_2 = A0_2
  L4_2 = 505
  L5_2 = 110169
  L6_2 = 110169
  L7_2 = {}
  L8_2 = 135
  L9_2 = 5
  L10_2 = 578
  L11_2 = 1
  L12_2 = 0
  L7_2[1] = L8_2
  L7_2[2] = L9_2
  L7_2[3] = L10_2
  L7_2[4] = L11_2
  L7_2[5] = L12_2
  L8_2 = {}
  L9_2 = {}
  L9_2.success = 0
  L9_2.fail = 1
  L2_2(L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2)
  L2_2 = ScriptLib
  L2_2 = L2_2.StartFatherChallenge
  L3_2 = A0_2
  L4_2 = 505
  L2_2(L3_2, L4_2)
  L2_2 = ScriptLib
  L2_2 = L2_2.AutoMonsterTide
  L3_2 = A0_2
  L4_2 = 506
  L5_2 = 133001578
  L6_2 = {}
  L7_2 = 578002
  L8_2 = 578004
  L9_2 = 578008
  L10_2 = 578009
  L11_2 = 5780010
  L6_2[1] = L7_2
  L6_2[2] = L8_2
  L6_2[3] = L9_2
  L6_2[4] = L10_2
  L6_2[5] = L11_2
  L7_2 = 5
  L8_2 = 2
  L9_2 = 2
  L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2)
  if 0 ~= L2_2 then
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_GADGET_CREATE_578029 = L2_1
function L2_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2
  L2_2 = ScriptLib
  L2_2 = L2_2.RefreshGroup
  L3_2 = A0_2
  L4_2 = {}
  L4_2.group_id = 133001578
  L4_2.suite = 1
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : refresh_group_to_suite"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_CHALLENGE_SUCCESS_578030 = L2_1
function L2_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2
  L2_2 = ScriptLib
  L2_2 = L2_2.RefreshGroup
  L3_2 = A0_2
  L4_2 = {}
  L4_2.group_id = 133001578
  L4_2.suite = 1
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : refresh_group_to_suite"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_CHALLENGE_FAIL_578031 = L2_1
L2_1 = require
L3_1 = "Activity_ArenaChallengeSub"
L2_1(L3_1)
